package cn.weekdragon.gscore.adapter.predicate.impl;

import cn.weekdragon.gscore.adapter.model.EventExt;
import cn.weekdragon.gscore.adapter.predicate.BotPredicate;

public class SuffixPredicate implements BotPredicate {

    private final String suffix;

    public SuffixPredicate(String suffix){
        this.suffix = suffix;
    }

    @Override
    public boolean test(EventExt eventExt) {
        return eventExt.argsText().endsWith(suffix);
    }
}
